Class DiplomacyProtocolManager

java.lang.Object
es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Notary
ddejonge.bandana.negoProtocol.DiplomacyProtocolManager
All Implemented Interfaces:
es.csic.iiia.negoServer.ProtocolManager

public class DiplomacyProtocolManager
extends es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Notary
  • Field Summary

    Fields inherited from class es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Notary

    deadline, domainInfo, logger, negotiationLength, numAgents, registeredNames
  • Constructor Summary

    Constructors 
    Constructor Description
    DiplomacyProtocolManager​(TournamentObserver tournamentObserver, java.lang.String logFolderPath, int gameServerPort)  
    DiplomacyProtocolManager​(java.lang.String logFolderPath, int gameServerPort)  
  • Method Summary

    Modifier and Type Method Description
    void enableConsistencyChecking​(boolean checkConsistency)  
    void notifyNewGame​(java.lang.String gameID)  
    boolean processAgentEntering​(es.csic.iiia.negoServer.Message msg, java.util.List<es.csic.iiia.negoServer.Message> messagesToForward)  
    boolean processMessage​(es.csic.iiia.negoServer.Message msg, java.util.List<es.csic.iiia.negoServer.Message> messagesToForward)  
    void stop()  
    protected boolean verifyValidity​(es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal newProp)  

    Methods inherited from class es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Notary

    allowInformalMessages, getAllMessagesExchanged, getConfirmedProposals, getDeadline, getName, getRegisteredNames, processAgentLeaving, reset, setLogger

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DiplomacyProtocolManager

      public DiplomacyProtocolManager​(TournamentObserver tournamentObserver, java.lang.String logFolderPath, int gameServerPort)
      Parameters:
      tournamentObserver - Is used so that negotiating agents can announce their names which will then be displayed by the TournamentObserver. Can be null.
      logFolderPath -
    • DiplomacyProtocolManager

      public DiplomacyProtocolManager​(java.lang.String logFolderPath, int gameServerPort)
  • Method Details

    • verifyValidity

      protected boolean verifyValidity​(es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal newProp)
      Specified by:
      verifyValidity in class es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Notary
    • processAgentEntering

      public boolean processAgentEntering​(es.csic.iiia.negoServer.Message msg, java.util.List<es.csic.iiia.negoServer.Message> messagesToForward)
      Specified by:
      processAgentEntering in interface es.csic.iiia.negoServer.ProtocolManager
      Overrides:
      processAgentEntering in class es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Notary
    • notifyNewGame

      public void notifyNewGame​(java.lang.String gameID)
    • enableConsistencyChecking

      public void enableConsistencyChecking​(boolean checkConsistency)
    • processMessage

      public boolean processMessage​(es.csic.iiia.negoServer.Message msg, java.util.List<es.csic.iiia.negoServer.Message> messagesToForward)
      Specified by:
      processMessage in interface es.csic.iiia.negoServer.ProtocolManager
      Overrides:
      processMessage in class es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Notary
    • stop

      public void stop()